// pages/duchuntao/unit5/case5-18/case5-18.js
Page({

    /**
     * 页面的初始数据
     */
    data: {
        title:''
  },
  inputTitle:function(e){
    this.setData({
      title:e.detail.value
    })
  },
setNavigationBarTitle() {
  let title=this.data.title;
  wx.setNavigationBartitle({
    title
  })
  },
setNavigationBarColor:function(){
  wx.setNavigationBarColor({
      frontColor:'#ffffff',
      backgroundColor:'#ff0000',
      animation:{
         duration:4000,
         timingFunc:'easeInOut'
      }
})  
},
showNavigationBarLoading:function() {
  wx.showNavigationBarLoading()
},
hideNavigationBarLoading:function(){
  wx.hideNavigationBarLoading()
}
})

   